/*		Filename: 	logger.h
 *		Author:		彭望
 *		Date:		2012-01-11
 *		Use:		定义日志对象
 */
#ifndef LOGGER_H
#define LOGGER_H

#include "public.h"
#include <log4cpp/Category.hh>
#include <log4cpp/OstreamAppender.hh>
#include <log4cpp/FileAppender.hh>
#include <log4cpp/BasicLayout.hh>
#include <log4cpp/Priority.hh>
#include <log4cpp/PropertyConfigurator.hh>
#include <log4cpp/Configurator.hh>
#include <log4cpp/PatternLayout.hh>
#include <log4cpp/NDC.hh>
#include <log4cpp/SimpleLayout.hh>

class Logger{
		public:
				typedef log4cpp::Category Logger_t;
				static log4cpp::Category& getLogger();
		private:
				static RetCode_t init();
				static bool isInited;
				static log4cpp::Category& logger;
};

#endif

